package com.douyu.ocean.recom.platfrom.core.framework;

import java.lang.reflect.Method;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;

public class ThreadExceptionHandler implements AsyncUncaughtExceptionHandler {

	private static Logger logger = LoggerFactory.getLogger(ThreadExceptionHandler.class);

	@Override
	public void handleUncaughtException(Throwable ex, Method method, Object... params) {
		logger.error("spring thread pool excepiton", ex);

	}

}
